package com.yc.jpyy.oadocitem.dao;

import java.util.List;
import java.util.Map;

import org.springframework.dao.DataAccessException;
import com.yc.jpyy.base.dao.BaseDao;
import com.yc.jpyy.base.util.PageBean;

public interface OADocItemDao extends BaseDao{


	int addOADocItemDao(Map<String, Object> paramsMap) throws DataAccessException;

	int updateOADocItemDao(Map<String, Object> paramsMap) throws DataAccessException;


	int delOADocItemDao(Map<String, Object> paramsMap) throws DataAccessException;
	
	Map<String, Object> findOADocItemByIdDao(Map<String, Object> paramsMap) throws DataAccessException;
	
	 //分页查询
	List<Map<String, Object>> findOADocItemDao(Map<String, Object> paramsMap)throws DataAccessException;
	  
	  //查询总数
	int findCountOADocItemDao(Map<String, Object> paramsMap)throws DataAccessException;
	
	
	int updateOADocItemUserIDStatusDao(Map<String, Object> paramsMap) throws DataAccessException;
	
	int updateOADocItemStatusDao(Map<String, Object> paramsMap) throws DataAccessException;
	 
	//批量更新状态 
	int updateOADocItemStatusOnetoXDao(Map<String, Object> paramsMap) throws DataAccessException;
	
	List<Integer>findOADocItemParentIDDao(Map<String, Object> paramsMap)throws DataAccessException;
	
	//根据子ID更新主表的AuditStatus状态
	int updateOADocsAuditStatusDao(Map<String, Object> paramsMap)throws DataAccessException;
	
	//查询主表对应的虽有子表中的状态是否已经完全更改为3
	int findItemStatus(Map<String, Object> paramsMap)throws DataAccessException;
	
	//更新主表部分列
	int updateOADocSimpColmnDao(Map<String, Object> paramsMap) throws DataAccessException;
	
	List<Map<String, Object>> findOADocItemByParentidDao(Map<String, Object> paramsMap)throws DataAccessException;

	int updateOadocItemStatusById(Map<String, Object> paramsMap) throws DataAccessException;
	
}
